﻿namespace PoemGame.Domain.Seedwork
{
    /// <summary>
    /// 内部事件数据的基类
    /// </summary>
    public class BaseEventDataLocal
    {
        public BaseEventDataLocal(DateTime eventDate, AggregateRoot sender)
        {
            EventDate = eventDate;
            this.Sender = sender;
        }
        /// <summary>
        /// 事件发生时间
        /// </summary>
        public DateTime EventDate { get; private set; }
        /// <summary>
        /// 发布时间的聚合根
        /// </summary>
        public AggregateRoot Sender { get; private set; }
    }
}
